<?xml version="1.0"?>

<%@page import="merlin.managers.*,merlin.beans.*,java.util.*" contentType="application/xml" %>
<%
	String reportId = request.getParameter("reportId");
	String finTypeId = request.getParameter("finTypeId");

	List  result = MsalResearchersManager.getFinancialDetailsForCompaniesByReportAndFinancialType(Integer.parseInt(reportId), Integer.parseInt(finTypeId),null, null, null);
%>
<companies>
<%
	for(int i=0;i<result.size(); i++){
		FinancialDetailsBean bn = (FinancialDetailsBean)result.get(i);
%>
	<company>
		<companyId><%=bn.getCompanyNumber()%></companyId>
		<companyName><%=bn.getCompanyName().replace("&","&amp;")%></companyName>
		<year1><%=bn.getYear1()%></year1>
	</company>
<%
	}
%>
</companies>